
cardbody {
  margin: 0;
  display: block;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: auto;
  font-family: "Montserrat", sans-serif;
}

.wrapper {
  display: block;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.card {
  width: 420px;
  height: 640px;
  margin: 2.5em;
  perspective: 1500px;
}
.card .content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
}

.more {
  display: none;
}
.more:checked ~ .content {
  transform: rotateY(180deg);
}

.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  border-radius: 6px;
}
.front .inner,
.back .inner {
  height: 100%;
  display: grid;
  padding: 1.5em;
  transform: translateZ(80px) scale(0.94);
}

.front {
  background-color: rgb(255, 255, 204);
  background-position: center center;
}
.front:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;

  border: 2px solid #f0f0f0;
}
.front .inner {
  grid-template-rows: 5fr 0.2fr 0.1fr 1fr;
  justify-items: center;
}

.back {
  transform: rotateY(180deg);
  background-color: #fff;
  border: 2px solid #f0f0f0;
}
.back .inner {
  grid-template-rows: 1fr 0.2fr 8fr 2fr;
  grid-template-columns: repeat(4, auto);
  grid-column-gap: 0.8em;
  justify-items: left;
}
.back .info {
  position: relative;
  display: flex;
  align-items: center;
  color: #355cc9;
  grid-row: 3;
}
.back .info:not(:first-of-type):before {
  content: "";
  position: absolute;
  left: -0.9em;
  height: 18px;
  width: 1px;
  background-color: #ccc;
}
.back .info span {
  font-size: 2em;
  font-weight: 700;
}
.back i {
  font-size: 1.2em;
}
.back i:before {
  background: linear-gradient(40deg, #355cc9, #438af3);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
.back .icon {
  margin-left: 0.3em;
}
.back .icon span {
  display: block;
  margin-top: -0.25em;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}
.back .description {
  grid-row: 3;
  grid-column: 1/-1;
  font-size: 0.86em;
  border-radius: 5px;
  overflow: auto;
  color: black;
  padding-right: 10px;
}
.back .service,
.back .contact {
  color: #355cc9;
  grid-row: 1;
  font-size: 1em;
}
.back .service {
  grid-column: 1/3;
  justify-self: left;
}
.back .contact {
  grid-column: 2/-1;
  justify-self: right;
  text-align: right;
}
.back .button {
  grid-column: 1/-1;
  justify-self: center;
  grid-row: 4;
  margin-top: 16px;
}

.button {
  grid-row:4;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  padding: 0 1.2em;
  height: 3em;
  line-height: 2.9em;
  min-width: 3em;
  background-color: ivory;
  border: solid 2px #fff;
  color: black;
  border-radius: 4px;
  border: solid 1px;
  border-color: blue;
  text-align: center;
  left: 50%;
  backface-visibility: hidden;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.button:hover {
  background-color: white;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  text-shadow: none;
  color: blue;
}
.button.return {
  background-color: white;
  line-height: 3em;
  border: solid 1px;
  color: black;
  border-color: blue;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.button.return:hover {
  background-color: white;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  text-shadow: none;
  color: blue;
}

}
